#ifndef ZG291_H
#define ZG291_H

#include <QWidget>
#include <QtWidgets/QTreeWidget>
#include <QSerialPort>
#include "zg291global.h"
#include "zg291temper_para.h"
#include "zg291hum_para.h"
#include "zg291_pm1_0.h"
#include "zg291pm2_5_para.h"
#include "zg291pm10_para.h"
#include "zg291tvoc_para.h"
#include "zg291bora_para.h"
#include "zg291ch2o_para.h"
#include "zg291pecu_para.h"
#include "zg291co2_para.h"
#include "zg291paradata.h"
namespace Ui {
class ZG291;
}

class ZG291 : public QWidget
{
    Q_OBJECT

public:
    explicit ZG291(QSerialPort *serialPort,QWidget *parent = nullptr);
    ~ZG291();

private slots:
    void on_treeWidget_itemClicked(QTreeWidgetItem *item, int column);
    void read_serson_en();
private:
    Ui::ZG291 *ui;
    QSerialPort *serialPort;
    QTimer *read_rtdata=nullptr;
    ZG291GLOBAL *zg291global=nullptr;
    ZG291temper_para *zg291temp_para=nullptr;
    ZG291hum_para * zg291_hum_para=nullptr;
    ZG291_PM1_0 *zg291pm1_0_para=nullptr;
    ZG291PM2_5_para *zg291pm2_5_para=nullptr;
    ZG291PM10_para *zg291pm10_para=nullptr;
    ZG291TVOC_PARA *zg291tvoc_para=nullptr;
    ZG291BORA_para *zg291bora_para=nullptr;
    ZG291CH2O_PARA *zg291ch20_para=nullptr;
    ZG291CO2_PARA *zg291co2_para=nullptr;
    zg291pecu_para *zg291_pecu_para=nullptr;

};

#endif // ZG291_H
